// const project = "dev";//开发环境
const project = 'platform'  
const prodMap = {
    platform: { 
      // host: 'https://anerle.ysguanjia.com/masseuseapi/', 
      // server_url: 'https://anerle.ysguanjia.com/masseuseapi/', 
	  host: 'http://h5.anerle168.com/masseuseapi/',
	  server_url: 'http://h5.anerle168.com/masseuseapi/', 
      appId: 'wx60a8240e02427fdc', 
      name: '按而乐', 
      chat: { 
          appid: "OERLgwBD2T1RcIsyaqxFkJrA2t16Hi" 
      }, 
      unitid: '', 
      unitid2: '', 
      ad: { 
        adIndexId: '', 
        adUserId: '' 
      }, 
    }, 
    //开发环境
    dev: {
		host: 'http://h5.anerle168.com/masseuseapi/',
		server_url: 'http://h5.anerle168.com/masseuseapi/', 
        // host: 'https://anerle.ysguanjia.com/masseuseapi/',
        // server_url: 'https://anerle.ysguanjia.com/masseuseapi/',
        appId: 'wx5e548063e64e9849',
        name: '未来科爵',
        chat: {
            appid: "4peDOIq57CN4XzkBcClgClHb6YTVZm"
        },
        ad: {
          adIndexId: '',
          adUserId: ''
        },
    },
     //mock开发环境
     mock: {
      // host: 'https://anerle.ysguanjia.com/masseuseapi/',
      // server_url: 'https://anerle.ysguanjia.com/masseuseapi/',
	  host: 'http://h5.anerle168.com/masseuseapi/',
	  server_url: 'http://h5.anerle168.com/masseuseapi/', 
      appId: 'wx5e548063e64e9849',
      name: '未来科爵',
      chat: {
          appid: "4peDOIq57CN4XzkBcClgClHb6YTVZm"
      },
      ad: {
        adIndexId: '',
        adUserId: ''
      },
  },
}
//生产
const config = {
    //version:  prodMap[project].version,
    //app版本号，不再使用配置里的版本号，统一版本号。2022年1月17日15:26:15
    version: '1.0.1.0.1',
    'VERSION':'RELEASE',
    //host:
    server_url: prodMap[project].server_url,
    appId: prodMap[project].appId, //product 
    chatAppId: prodMap[project].chat.appid,
    lversion: "2.0.0617",
    projectName: prodMap[project].name,
    url: prodMap[project].host,
    freeList: ["/charging/order/user", "/user/getDefaultPower"],
    //跳过401验证,直接返回参数
    filtrationToken: ["/user/authLogin", "/user/login"],
    //过滤token,过滤掉后台免登的接口,以免传过期token返回401
    paymentMethod: "wxpayMp",
    unitid: prodMap[project].ad.adIndexId,    //广告的unit-id
    unitid2: prodMap[project].ad.adUserId,
};

module.exports = config;